<%@page pageEncoding="UTF-8" session="true"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@taglib tagdir="/WEB-INF/tags" prefix="bot"%>
<fmt:formatDate var="todayDate" type="date" pattern="dd-MMM-yyyy" value="${today}"/>

<bot:page title="Login" nopanel="true">
	<form action="<c:url value="/app/do_login"/>" method="POST">
	<h3 class="alt">Login required</h3>
	<table class="layout">
		<c:if test="${not empty param.login_error}">
			<tr>
				<td colspan="2"><div class="error">Your login attempt was not
				successful, try again.<BR>
				<BR>
				Reason: ${sessionScope.ACEGI_SECURITY_LAST_EXCEPTION}</div></td>
			</tr>
		</c:if>

		<tr>
			<th>User:</th>
			<td><input type="text" name="j_username"
				value="<c:if test="${not empty param.login_error}">${ sessionScope.ACEGI_SECURITY_LAST_USERNAME}</c:if>"></td>
		</tr>
		<tr>
			<th>Password:</th>
			<td><input type="password" name="j_password"></td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><input type="checkbox" name="_acegi_security_remember_me">
			Remember me for one month on this computer</td>
		</tr>

		<tr>
			<th>&nbsp;</th>
			<td><input class="button" name="submit" type="submit" value="Log in"></td>
		</tr>
	</table>
	<h3 class="alt">Help</h3>
	<p>
		This the webapplication corresponding to our channel bot. To create an
		account send the bot a private message with "/msg BotName showmeyourbits" while being
	</p>		
	<ol type="a">
		<li>registered with NickServ</li>
		<li>in the channel</li>
	</ol> 
	<p>		
		The bot will announce the creation of your account in the channel. If you don't know where our channel is, 
		you are not supposed to use this application anyway.
	</p>
	</form>
</bot:page>
